<?php
/**
 * Eka Framework 0.3.0
 *
 * @copyright Copyright (c) 2008 Alexey Yu. Chuprina <656b61@gmail.com> (http://php-eka.googlecode.com)
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 *
 * @version $Id$
 */

/**
 * Eka_Db_Expr
 *
 * @package Db
 */
class Eka_Db_Expr
{
	/**
	 * SQL expression
	 *
	 * @var string
	 */
	protected $expression;

	/**
	 * Construct
	 *
	 * @param string $expression
	 */
	public function __construct($expression)
	{
		$this->expression = (string)$expression;
	}

	/**
	 * @return string The string of the SQL expression stored in this object
	 */
	public function toString()
	{
		return $this->expression;
	}
	
	public function __toString()
	{
		return $this->toString();
	}
}